package com.lovo.homework7_7;

import java.util.Arrays;
import java.util.Scanner;

public class SnakeCaseToCamelCase {
    public static void main(String[] args) {
        System.out.println("请输入蛇形命名的名字");
        Scanner scan = new Scanner(System.in);
        String str = scan.next();
        char[] chars = str.toCharArray();
        String strss = "";
        for (int i = 0; i < chars.length; i++) {
            if (chars[i] == '_' ) {
                chars[i+1]-=32;
            }else {
                strss+=chars[i];
            }
        }
        System.out.println(strss);
//        char[] chars1 =new  char[(counts+1)];
//        String[] strs = new String[(counts+1)];
//        strs=str.split("_",(counts+1));
//
//        for (int i = 0; i < strs.length; i++) {
//            System.out.println(strs[i].to);
//        }

    }
}